<template>
  <div id="app">
    <div v-if="!isAdmin" class="k-w">
      <app-header></app-header>
    </div>
    <!-- 上传组件 -->
    <router-view></router-view>
  </div>
</template>

<script>

import AppHeader from '@/components/Header.vue';
export default {
  name: 'app',
  components: { 
    AppHeader
  },
  data() {
    return {
      isAdmin: false
    }
  },
  mounted() {
    console.log(this.$route)
    // todo 判断admin换种写法！
    this.isAdmin =  location.href.includes('admin') 
  }
} 

</script>

<style src="./style/index.scss" lang="scss"></style>
